翻訳と辞書
Words near each other
・ Folchard Psalter
・ Folck's Mill
・ Folcmar (bishop)
・ Folco
・ Folco de Baroncelli-Javon
・ Folco Lulli
・ Folco Portinari
・ Folco Quilici
・ Folcric
・ Folcroft (SEPTA station)
・ Folcroft, Pennsylvania
・ Folcwald
・ Fold (album)
・ Fold (geology)
・ Fold (higher-order function)
Fold (Unix)
・ Fold A to B
・ Fold and thrust belt
・ Fold change
・ Fold equity
・ Fold Island
・ Fold mountain
・ Fold number
・ Fold of left vena cava
・ Fold Villages
・ Fold Your Hands Child, You Walk Like a Peasant
・ Fold Zandura
・ Fold-and-cut theorem
・ Fold-forming
・ Fold-Pak


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Fold (Unix) : ウィキペディア英語版
Fold (Unix)

Fold is a Unix command used for making a file with long lines more readable on a limited width terminal. Most Unix terminals have a default screen width of 80, and therefore reading files with long lines could get annoying. The fold command puts a line feed every X characters if it does not reach a new line before that point. If the -w argument is set, the fold command allows the user to set the maximum length of a line.
==Example==

As a usage example, to fold a file named file.txt to have a maximum of 50 characters per line, one could run the following command:

fold -w 50 file.txt

*file.txt:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur dignissim
venenatis pede. Quisque dui dui, ultricies ut, facilisis non, pulvinar non,
purus. Duis quis arcu a purus volutpat iaculis. Morbi id dui in diam ornare
dictum. Praesent consectetuer vehicula ipsum. Praesent tortor massa, congue et,
ornare in, posuere eget, pede.
Vivamus rhoncus. Quisque lacus. In hac habitasse platea dictumst. Nullam mauris
tellus, sollicitudin non, semper eget, sodales non, pede. Phasellus varius
ullamcorper libero. Fusce ipsum lorem, iaculis nec, vulputate vitae, suscipit
vel, tortor. Cras varius.
Nullam fringilla pellentesque orci. Nulla eu ante pulvinar velit rhoncus
lacinia. Morbi fringilla lacus quis arcu. Vestibulum sem quam, dapibus in,
fringilla ut, venenatis ut, neque.

*output:

Lorem ipsum dolor sit amet, consectetuer adipiscin
g elit. Curabitur dignissim
venenatis pede. Quisque dui dui, ultricies ut, fac
ilisis non, pulvinar non,
purus. Duis quis arcu a purus volutpat iaculis. Mo
rbi id dui in diam ornare
dictum. Praesent consectetuer vehicula ipsum. Prae
sent tortor massa, congue et,
ornare in, posuere eget, pede.
Vivamus rhoncus. Quisque lacus. In hac habitasse p
latea dictumst. Nullam mauris
tellus, sollicitudin non, semper eget, sodales non
, pede. Phasellus varius
ullamcorper libero. Fusce ipsum lorem, iaculis nec
, vulputate vitae, suscipit
vel, tortor. Cras varius.
Nullam fringilla pellentesque orci. Nulla eu ante
pulvinar velit rhoncus
lacinia. Morbi fringilla lacus quis arcu. Vestibul
um sem quam, dapibus in,
fringilla ut, venenatis ut, neque.


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Fold (Unix)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.